package com.hackintosh.scenery;

import java.util.ArrayList;
import java.util.List;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/06/03
 * @modified By：
 * @version: 1.0
 */
public class WyTouristSpot implements TouristSpot {
    private List<WyViewSpot> cSharpList = new ArrayList<>();
    @Override
    public void add(WyViewSpot wyViewSpot) {
        cSharpList.add(wyViewSpot);
    }

    @Override
    public void remove(WyViewSpot wyViewSpot) {
        cSharpList.remove(wyViewSpot);
    }

    @Override
    public ViewSpotIterator getIterator() {
        return new WyViewSpotIterator(cSharpList);
    }
}
